//
//  HomeWebViewController.swift
//  SinaWeibo
//
//  Created by yang on 15/11/25.
//  Copyright © 2015年 yang. All rights reserved.
//

import UIKit
import SVProgressHUD
class HomeWebViewController: UIViewController,UIWebViewDelegate {

    var webView = UIWebView()
    var urlString : String?
    override func loadView() {
        view = webView
        webView.delegate = self
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        if let url = NSURL(string: urlString ?? ""){
            let requst = NSURLRequest(URL: url)
            webView.loadRequest(requst)
        }
    }
    func webViewDidStartLoad(webView: UIWebView) {
        SVProgressHUD.show()
        
    }
    func webViewDidFinishLoad(webView: UIWebView) {
        SVProgressHUD.dismiss()
    }
}
